<!-- 一定要加上这一句，否则可能引入的时候导致乱码 -->
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<style>
.main {
  padding-right: 15%!important ;
  padding-left: 15%!important ;
}
</style>
    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar">1</span>
            <span class="icon-bar">2</span>
            <span class="icon-bar">3</span>
          </button>
          <a class="navbar-brand" >公安三所健步走协会</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <%-- 
            <li <% if(request.getServletPath().indexOf("/about.jsp") != -1) { %> class="active" <% } %> ><a href="${path }/about">关于我们</a></li>
            <li <% if(request.getServletPath().indexOf("/help.jsp") != -1) { %> class="active" <% } %> ><a href="${path }/help">帮助</a></li>
             --%>
             
            <li <% if(request.getServletPath().indexOf("/main.jsp") != -1) { %> class="active" <% } %> ><a href="${path }/">首页 <span class="sr-only">(current)</span></a></li>
			<li <% if(request.getServletPath().indexOf("/step/steplist.jsp") != -1) { %> class="active" <% } %> ><a href="${path }/step/list">步数管理</a></li>
			<li <% if(request.getServletPath().indexOf("/report/reportList.jsp") != -1) { %> class="active" <% } %> ><a href="${path }/report/reportList">步数统计</a></li>
			<li <% if(request.getServletPath().indexOf("/walker/walkerlist.jsp") != -1) { %> class="active" <% } %> ><a href="${path }/walker/list">人员管理</a></li>
			
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <% if(request.getAttribute("username") == null){ %>
            <li><a href="${path }/user/login">登录</a></li>
            <% } else { %>
            <li><a href="${path }/user/userinfo"> ${username }</a></li>
            <li><a href="${path }/user/logout">退出</a></li>
            	<c:if test="${role=='999' }">
	            <li><a href="${path }/user/list">管理员入口</a></li>
	            </c:if>
            <% } %>
          </ul>
          <!-- <form class="navbar-form navbar-right">
            <input type="text" class="form-control" placeholder="Search..." style="width: 140px;">
          </form> -->
        </div>
      </div>
    </nav>